package com.pug.security.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author feige
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("pug_permission")
public class SysPermission implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;
    // 是否是父级权限
    private Long parentId;
    // 权限的名称
    private String name;
    //权限的代号
    private String ename;
    //权限的url地址
    private String url;
    //权限的描述
    private String description;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date created;
    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updated;

}
